package registry

import (
	"context"

	"gitee.com/zawei/yggdrasil/pkg/transport/server"
)

type Registry interface {
	Name() string
	Register(context.Context, *server.Info) error
	Deregister(context.Context, *server.Info) error
	ListServices(context.Context, string, string) (*Endpoints, error)
	Watch(context.Context, string, string) (<-chan *Endpoints, error)
	Close() error
}
